package org.jogdiary2011.controller.exerciseResult;

import java.util.List;

import org.jogdiary2011.model.ExerciseResult;
import org.jogdiary2011.service.ExerciseResultService;
import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class ListController extends Controller {

    private ExerciseResultService exerciseResultService = new ExerciseResultService();
    
    @Override
    public Navigation run() throws Exception {
        List<ExerciseResult> exerciseResults = exerciseResultService.findAll();
        requestScope("exerciseResults", exerciseResults);

        return forward("list.jsp");
    }
}
